package ks.client.controllers.admin;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import ks.client.gui.ErrorMessageGUI;


/**
 * Removes the error message screen when the user clicks the ok button.
 * 
 * @author Jennifer Hunt
 *
 */
public class ErrorOKClickController implements ActionListener{
	
	ErrorMessageGUI em;
	
	/**
	 * Constructor for PluginAdminClickController
	 * @param lobby
	 */
	public ErrorOKClickController(ErrorMessageGUI em) {
		this.em = em;
	}
	
	/**
	 * sets the error message screens visibility to false
	 */
	public void actionPerformed(ActionEvent e){
		em.setVisible(false);
		
	}

}
